/*
 * Copyright (C) 2021  FunGuide, Inc. All Rights Reserved.
 */


package com.yxw.springcloud.service;

import com.yxw.springcloud.model.CommonResult;
import com.yxw.springcloud.model.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Simple to Introduction
 * className: PaymentFeignService
 *
 * @author yanxw
 * @version 2021/5/4 12:16 下午
 */

@Component
@FeignClient(value = "nacos-payment-provider")
public interface PaymentFeignService {

    @GetMapping("/payment/nacos/{id}")
    String getPayment(@PathVariable("id") Integer id);

    @GetMapping(value = "/payment/feign/timeout")
    String paymentFeignTimeout();
}

